package com.duoqin.payservice.data;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class CommodityResponse {

    /**
     * code : 0
     * msg : 成功
     * data : {"commodity":{"id":1,"name":"dq 翻译","description":"翻译  description","iconUrl":"http://www.duoqin.com/img/duoqin_logo.png","picUrl":"http://www.duoqin.com/img/duoqin_logo.png","commodityType":1,"createAt":1539250772000,"modifyAt":1539250772000},"depositPlans":[{"id":1,"balance":0,"name":"任意金额","validDays":0},{"id":2,"balance":30,"name":"0.10元","validDays":30},{"id":3,"balance":50,"name":"50元","validDays":90},{"id":4,"balance":100,"name":"100元","validDays":120}],"price":[{"id":1,"description":"包月收费","priceType":1,"priceUnit":"month","priceQuantity":1,"pricePerUnit":19.99,"createAt":1539250786000,"modifyAt":1539250786000},{"id":2,"description":"包周收费","priceType":2,"priceUnit":"week","priceQuantity":1,"pricePerUnit":5.99,"createAt":1539250786000,"modifyAt":1539250786000},{"id":3,"description":"每10字 ￥1分","priceType":11,"priceUnit":"character","priceQuantity":10,"pricePerUnit":0.01,"createAt":1539250786000,"modifyAt":1539250786000},{"id":4,"description":"每10秒 ￥0.99","priceType":12,"priceUnit":"sec","priceQuantity":10,"pricePerUnit":0.99,"createAt":1539250786000,"modifyAt":1539250786000}],"salesPromotions":[{"id":1,"description":"新用户充值1分抵 10元","promotionBegin":1539165656000,"promotionEnd":1602324056000,"createAt":1539250809000,"modifyAt":1539250809000}]}
     */

    @SerializedName("code")
    private int code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("data")
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * commodity : {"id":1,"name":"dq 翻译","description":"翻译  description","iconUrl":"http://www.duoqin.com/img/duoqin_logo.png","picUrl":"http://www.duoqin.com/img/duoqin_logo.png","commodityType":1,"createAt":1539250772000,"modifyAt":1539250772000}
         * depositPlans : [{"id":1,"balance":0,"name":"任意金额","validDays":0},{"id":2,"balance":30,"name":"0.10元","validDays":30},{"id":3,"balance":50,"name":"50元","validDays":90},{"id":4,"balance":100,"name":"100元","validDays":120}]
         * price : [{"id":1,"description":"包月收费","priceType":1,"priceUnit":"month","priceQuantity":1,"pricePerUnit":19.99,"createAt":1539250786000,"modifyAt":1539250786000},{"id":2,"description":"包周收费","priceType":2,"priceUnit":"week","priceQuantity":1,"pricePerUnit":5.99,"createAt":1539250786000,"modifyAt":1539250786000},{"id":3,"description":"每10字 ￥1分","priceType":11,"priceUnit":"character","priceQuantity":10,"pricePerUnit":0.01,"createAt":1539250786000,"modifyAt":1539250786000},{"id":4,"description":"每10秒 ￥0.99","priceType":12,"priceUnit":"sec","priceQuantity":10,"pricePerUnit":0.99,"createAt":1539250786000,"modifyAt":1539250786000}]
         * salesPromotions : [{"id":1,"description":"新用户充值1分抵 10元","promotionBegin":1539165656000,"promotionEnd":1602324056000,"createAt":1539250809000,"modifyAt":1539250809000}]
         */

        @SerializedName("commodity")
        private CommodityBean commodity;
        @SerializedName("depositPlans")
        private List<DepositPlansBean> depositPlans;
        @SerializedName("price")
        private List<PriceBean> price;
        @SerializedName("salesPromotions")
        private List<SalesPromotionsBean> salesPromotions;

        public CommodityBean getCommodity() {
            return commodity;
        }

        public void setCommodity(CommodityBean commodity) {
            this.commodity = commodity;
        }

        public List<DepositPlansBean> getDepositPlans() {
            return depositPlans;
        }

        public void setDepositPlans(List<DepositPlansBean> depositPlans) {
            this.depositPlans = depositPlans;
        }

        public List<PriceBean> getPrice() {
            return price;
        }

        public void setPrice(List<PriceBean> price) {
            this.price = price;
        }

        public List<SalesPromotionsBean> getSalesPromotions() {
            return salesPromotions;
        }

        public void setSalesPromotions(List<SalesPromotionsBean> salesPromotions) {
            this.salesPromotions = salesPromotions;
        }

        public static class CommodityBean {
            /**
             * id : 1
             * name : dq 翻译
             * description : 翻译  description
             * iconUrl : http://www.duoqin.com/img/duoqin_logo.png
             * picUrl : http://www.duoqin.com/img/duoqin_logo.png
             * commodityType : 1
             * createAt : 1539250772000
             * modifyAt : 1539250772000
             */

            @SerializedName("id")
            private int id;
            @SerializedName("name")
            private String name;
            @SerializedName("description")
            private String description;
            @SerializedName("iconUrl")
            private String iconUrl;
            @SerializedName("picUrl")
            private String picUrl;
            @SerializedName("commodityType")
            private int commodityType;
            @SerializedName("createAt")
            private long createAt;
            @SerializedName("modifyAt")
            private long modifyAt;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public String getIconUrl() {
                return iconUrl;
            }

            public void setIconUrl(String iconUrl) {
                this.iconUrl = iconUrl;
            }

            public String getPicUrl() {
                return picUrl;
            }

            public void setPicUrl(String picUrl) {
                this.picUrl = picUrl;
            }

            public int getCommodityType() {
                return commodityType;
            }

            public void setCommodityType(int commodityType) {
                this.commodityType = commodityType;
            }

            public long getCreateAt() {
                return createAt;
            }

            public void setCreateAt(long createAt) {
                this.createAt = createAt;
            }

            public long getModifyAt() {
                return modifyAt;
            }

            public void setModifyAt(long modifyAt) {
                this.modifyAt = modifyAt;
            }
        }

        public static class DepositPlansBean {
            /**
             * id : 1
             * balance : 0 实际支出
             * displayBalance : 0 实际到账
             * name : 实际到账金额的描述，用于展示
             * validDays : 0
             */

            @SerializedName("id")
            private int id;
            @SerializedName("balance")
            private double balance;
            @SerializedName("displayBalance")
            private double displayBalance;
            @SerializedName("name")
            private String name;
            @SerializedName("validDays")
            private int validDays;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public double getBalance() {
                return balance;
            }

            public void setBalance(double balance) {
                this.balance = balance;
            }

            public double getDisplayBalance() {
                return displayBalance;
            }

            public void setDisplayBalance(double displayBalance) {
                this.displayBalance = displayBalance;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getValidDays() {
                return validDays;
            }

            public void setValidDays(int validDays) {
                this.validDays = validDays;
            }
        }

        public static class PriceBean {
            /**
             * id : 1
             * description : 包月收费
             * priceType : 1
             * priceUnit : month
             * priceQuantity : 1
             * pricePerUnit : 19.99
             * createAt : 1539250786000
             * modifyAt : 1539250786000
             */

            @SerializedName("id")
            private int id;
            @SerializedName("description")
            private String description;
            @SerializedName("priceType")
            private int priceType;
            @SerializedName("priceUnit")
            private String priceUnit;
            @SerializedName("priceQuantity")
            private int priceQuantity;
            @SerializedName("pricePerUnit")
            private double pricePerUnit;
            @SerializedName("createAt")
            private long createAt;
            @SerializedName("modifyAt")
            private long modifyAt;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public int getPriceType() {
                return priceType;
            }

            public void setPriceType(int priceType) {
                this.priceType = priceType;
            }

            public String getPriceUnit() {
                return priceUnit;
            }

            public void setPriceUnit(String priceUnit) {
                this.priceUnit = priceUnit;
            }

            public int getPriceQuantity() {
                return priceQuantity;
            }

            public void setPriceQuantity(int priceQuantity) {
                this.priceQuantity = priceQuantity;
            }

            public double getPricePerUnit() {
                return pricePerUnit;
            }

            public void setPricePerUnit(double pricePerUnit) {
                this.pricePerUnit = pricePerUnit;
            }

            public long getCreateAt() {
                return createAt;
            }

            public void setCreateAt(long createAt) {
                this.createAt = createAt;
            }

            public long getModifyAt() {
                return modifyAt;
            }

            public void setModifyAt(long modifyAt) {
                this.modifyAt = modifyAt;
            }
        }

        public static class SalesPromotionsBean {
            /**
             * id : 1
             * description : 新用户充值1分抵 10元
             * promotionBegin : 1539165656000
             * promotionEnd : 1602324056000
             * createAt : 1539250809000
             * modifyAt : 1539250809000
             */

            @SerializedName("id")
            private int id;
            @SerializedName("description")
            private String description;
            @SerializedName("promotionBegin")
            private long promotionBegin;
            @SerializedName("promotionEnd")
            private long promotionEnd;
            @SerializedName("createAt")
            private long createAt;
            @SerializedName("modifyAt")
            private long modifyAt;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public long getPromotionBegin() {
                return promotionBegin;
            }

            public void setPromotionBegin(long promotionBegin) {
                this.promotionBegin = promotionBegin;
            }

            public long getPromotionEnd() {
                return promotionEnd;
            }

            public void setPromotionEnd(long promotionEnd) {
                this.promotionEnd = promotionEnd;
            }

            public long getCreateAt() {
                return createAt;
            }

            public void setCreateAt(long createAt) {
                this.createAt = createAt;
            }

            public long getModifyAt() {
                return modifyAt;
            }

            public void setModifyAt(long modifyAt) {
                this.modifyAt = modifyAt;
            }
        }
    }
}
